package com.usian.feign;

import com.usian.pojo.SearchItem;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "usian-search-service")
public interface SearchFeign {

    @RequestMapping("importAll")
    public boolean importAll();

    @RequestMapping("list")
    public List<SearchItem> list(@RequestParam String q,
                                 @RequestParam Long page,
                                 @RequestParam Long pageSize);

}
